# start up the game

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from core.support import build_route, default_route

# define our routes
#game_routes = [
               #build_route('restart','RestartHandler'),
               #build_route('startingpoint','StartingPointHandler'),
               #build_route('entrancehall','EntranceHallHandler'),
               #build_route('basement','BasementHandler'),
               #build_route('closet','ClosetHandler'),
               #build_route('treasure_room','TreasureRoomHandler'),
               #build_route('victory_room','VictoryRoomHandler'),
               #default_route('speed_boat', 'SpeedBoatHandler'),
               #]
# define our routes
game_routes = [
               build_route('underwater','UnderWaterHandler'),
               build_route('deck','DeckHandler'),
               build_route('hull','HullHandler'),
               build_route('nest','NestHandler'),
               build_route('treasure_room','TreasureRoomHandler'),
               build_route('speed_boat','SpeedBoatHandler'),
               build_route('octopus','OctopusHandler'),
               build_route('siren','SirenHandler'),
               build_route('restart','RestartHandler'),
               build_route('final','FinalRoomHandler'),
               default_route('speed_boat', 'SpeedBoatHandler')
               ]
application = webapp.WSGIApplication(game_routes, debug=True)


def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
